project(Line)

cmake_minimum_required(VERSION 3.21)

set(CMAKE_C_STANDARD 99)

aux_source_directory(./include SRC)
aux_source_directory(./src SRC)

add_definitions(-D DEBUG)

add_subdirectory(./test)

set(CMAKE_BUILD_TYPE "Debug")
# set(CMAKE_BUILD_TYPE "Release")

set(CMAKE_C_FLAGS_DEBUG "-O0 -g -ggdb")

set(CMAKE_C_FLAGS_RELEASE "-O3")

add_library(Line STATIC ${SRC})